package org.zju.demo.shoppingdemo.model.Request;

import com.google.gson.annotations.SerializedName;

import org.zju.demo.shoppingdemo.utils.Constant;

import java.util.List;

/**
 * Created by ZJDX on 2015/9/9.
 */
public class BuyProductsModel extends BaseModel {
    @SerializedName("username")
    private String username;
    @SerializedName("time")
    private String time;
    @SerializedName("latitude")
    private double latitude;
    @SerializedName("longitude")
    private double longitude;
    @SerializedName("address")
    private String address;
    @SerializedName("products")
    private List<RequestProduct> products;

    public BuyProductsModel() {
        this.commandId = Constant.COMMAND_BUY;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public List<RequestProduct> getProducts() {
        return products;
    }

    public void setProducts(List<RequestProduct> products) {
        this.products = products;
    }
}
